<?php

	ini_set("soap.wsdl_cache_enabled", "0");
	
	/**
	 * @package Yomm
	 * @author bsuter
	 *
	 */
	Class Yomm_ErrorApi
	{
		private $wsdl_url = 'http://www.avancecms.ch/errorAPI/ErrorHandling.wsdl';

		private $client = null;

		private $return = null;
		
		public function __construct($message)
		{
			$this->client = new SoapClient($this->wsdl_url);
			
			$this->return = $this->client->sendError($_SERVER['SERVER_NAME'], $_SERVER['SERVER_ADDR'], $message);
		}
	}